home *** CD-ROM | disk | FTP | other *** search
- Path: rover.ucs.ualberta.ca!news
- From: ryangall@gpu.srv.ualberta.ca (Bobby Sixkiller)
- Newsgroups: comp.lang.c
- Subject: Re: Directory tree search??
- Date: 10 Jan 1996 07:45:43 GMT
- Organization: University of Alberta, Edmonton, Canada
- Message-ID: <4cvqr7$s8s@pulp.ucs.ualberta.ca>
- References: <4cv94u$90v@news2.realtime.net>
- NNTP-Posting-Host: async4-15.remote.ualberta.ca
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.2
-
- In article <4cv94u$90v@news2.realtime.net>, cds@ballistic.com says...
- >
- >I'm looking for an algorithm to search the directory structure for a
- >particular file. Any suggestion??
- >
- >Shawn L. Bradley
- >
- >CADD Design Solutions
- >cds@ballistic.com
- >
- If you are just using ANSI C ...forget it, but your probably not. If you
- have access to a findfirst() / findnext() type function, you can easily do
- a search using a recursive procedure. I wrote one that works pretty
- good....for Borland Turbo C++, If you want me to sent it to you, you can
- mail me and Ill send it...its not long...but I use alot of space doing
- error checking!
-
-